using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DM.DAO;
using DM.Entity;

namespace DM.Web
{
    public partial class LienHe : System.Web.UI.Page
    {
        private Int32 lang;
        private TinTucDAO _tinTucDao = new TinTucDAO();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["lang"] == null) lang = Common.TiengViet;
            else lang = ReferenceEquals(Session["lang"], "vi-VN") ? Common.TiengViet : Common.TiengAnh;
            if(!IsPostBack)
            {
                TinTuc tinLienHe = (_tinTucDao.Gets(Common.TinThongTinLienHe, 1, lang))[0];
                labelLienHe.Text = tinLienHe.Tieude;
                labelNoiDungLienHe.Text = tinLienHe.Noidung;
            }
        }
    }
}
